home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: uu4news.netcom.com!friend!news
- From: rich@kastle.com (Richard Krehbiel)
- Subject: Re: Standard question - pointer initialization
- Message-ID: <1996Mar18.113844.28711@friend.kastle.com>
- Sender: news@friend.kastle.com (News)
- Reply-To: rich@kastle.com
- Organization: Kastle Development Associates
- X-Newsreader: Forte Free Agent 1.0.82
- References: <4hk9un$906@hammer.msfc.nasa.gov> <4i52bk$5el@s02.pavilion.co.uk> <TANMOY.96Mar12211525@qcd.lanl.gov> <1996Mar14.113012.7984@friend.kastle.com> <TANMOY.96Mar15153247@qcd.lanl.gov>
- Date: Mon, 18 Mar 1996 11:39:01 GMT
-
- tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) wrote:
-
- >In article <1996Mar14.113012.7984@friend.kastle.com>
- >rich@kastle.com (Richard Krehbiel) writes:
- ><snip>
- >RK:
- >RK: C not only lets you write really portable stuff, it also lets you
- >RK: write really platform/compiler/vendor-specific stuff, and that's a
- >RK: GOOD thing.
- >RK:
-
- >I agree, except at that point I stop calling it C :-)
-
- Name the language you would you suggest someone use to write
- multiplatform networking code. Obviously not C.
-
- I have a single source base that compiles and executes on 4 OSes and
- three hardware architectures. And in all cases it's the available C
- compiler that produces working code from the source. What language
- shall I call it?
-
- >More importantly, most often people write non-portable code where
- >portable code would be as good. Having ported code which was never
- >meant to be ported I think that is a chain of thought which ought to
- >be stamped out; and I for one will attempt to do so.
-
- >Basically, there are four reasons why people write non-portable code:
-
- >1) Ignorance
- >2) Laziness
- >3) Efficiency
- >4) Platform specific stuff.
-
- >I accept only 3) and 4) as valid reasons.
-
- I agree, but I call it "efficiency" (and I suspect you wouldn't) to
- use memset or calloc rather than typing struct.member=0 48 times when
- I know the target platforms will all be MS Windows.
-
- --
- Richard Krehbiel, Kastle Systems, Arlington VA USA
- rich@kastle.com (work) or richk@mnsinc.com (personal)
-
-